﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Quản lý giáo vụ Khoa Công nghệ phần mềm</title>
    <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/themes/gvclient/css/reset.css")" media="screen" />
    <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/themes/gvclient/css/text.css")" media="screen" />
    <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/themes/gvclient/css/grid.css")" media="screen" />
    <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/themes/gvclient/css/layout.css")" media="screen" />
    <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/themes/gvclient/css/nav.css")" media="screen" />
    <link href="@Url.Content("~/Content/js/jsToastMessage/resources/css/jquery.toastmessage.css")" rel="stylesheet" />

    <link href="@Url.Content("~/Content/jquery-ui.css")" rel="Stylesheet" type="text/css" />
    <!--[if IE 6]><link rel="stylesheet" type="text/css" href="css/ie6.css" media="screen" /><![endif]-->
    <!--[if IE 7]><link rel="stylesheet" type="text/css" href="css/ie.css" media="screen" /><![endif]-->
    <!-- BEGIN: load jquery -->
    <script src="@Url.Content("~/Scripts/jquery-1.8.2.js")"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.9.1.js")"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-timepicker-addon.js")"></script>
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")"></script>

    <script type="text/javascript" src="@Url.Content("~/Content/js/jsToastMessage/javascript/jquery.toastmessage.js")"></script>
    @*<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")"></script>*@
    @*<script src="@Url.Content("~/Content/themes/gvclient/js/jquery-ui/jquery.ui.core.min.js")" ></script>
    <script src="@Url.Content("~/Content/themes/gvclient/js/jquery-ui/jquery.ui.widget.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Content/themes/gvclient/js/jquery-ui/jquery.ui.accordion.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Content/themes/gvclient/js/jquery-ui/jquery.effects.core.min.js")" type="text/javascript")"></script>
    <script src="@Url.Content("~/Content/themes/gvclient/js/jquery-ui/jquery.effects.slide.min.js")" type="text/javascript")"></script>*@
    <!-- END: load jquery -->
    <!-- BEGIN: load jqplot -->
    <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/themes/gvclient/css/jquery.jqplot.min.css")" />
    <!--[if lt IE 9]><script language="javascript" type="text/javascript" src="js/jqPlot/excanvas.min.js"></script><![endif]-->
    <script language="javascript" type="text/javascript" src="@Url.Content("~/Content/themes/gvclient/js/jqPlot/jquery.jqplot.min.js")"></script>
    <script language="javascript" type="text/javascript" src="@Url.Content("~/Content/themes/gvclient/js/jqPlot/plugins/jqplot.barRenderer.min.js")"></script>
    <script language="javascript" type="text/javascript" src="@Url.Content("~/Content/themes/gvclient/js/jqPlot/plugins/jqplot.pieRenderer.min.js")"></script>
    <script language="javascript" type="text/javascript" src="@Url.Content("~/Content/themes/gvclient/js/jqPlot/plugins/jqplot.categoryAxisRenderer.min.js")"></script>
    <script language="javascript" type="text/javascript" src="@Url.Content("~/Content/themes/gvclient/js/jqPlot/plugins/jqplot.highlighter.min.js")"></script>
    <script language="javascript" type="text/javascript" src="@Url.Content("~/Content/themes/gvclient/js/jqPlot/plugins/jqplot.pointLabels.min.js")"></script>
   <!-- tinyce -->
    <script type="text/javascript" src="@Url.Content("~/Content/editor/ckeditor/ckeditor.js")"></script>
    <!-- END: load jqplot -->
    <script src="~/Content/themes/gvclient/js/setup.js"></script>
    <script type="text/javascript">

        $(document).ready(function () {

        });
    </script>
</head>
<body>
    <div class="container_12">
        <div class="grid_12 header-repeat">
            <div id="branding">
                <div class="floatleft">
                    <img src="~/Content/images/common/logo_giangvien.png" /></div>
                <div class="floatright">
                    <div class="floatleft">
                        <img style="width:31px;height:31px;" src="~/Content/themes/bluewhale/img/user.png" alt="Profile Pic" /></div>
                    <div class="floatleft marginleft10">
                        <ul class="inline-ul floatleft">
                            <li>Chào: <span id="hotengiangvien"></span></li>
                            @*<li><a href="#">Config</a></li>*@
                            <li><a class="dangxuat" href="#">Logout</a></li>
                        </ul>
                        <br />
                        @*<span class="small grey">Last Login: 3 hours ago</span>*@
                    </div>
                </div>
                <div class="clear">
                </div>
            </div>
        </div>
        <div class="clear">
        </div>
        <div class="grid_12">
            <ul class="nav main">
                <li class="ic-dashboard"><a href="@Url.Action("Index", "GiangVienClient")"><span>Giảng Viên</span></a> </li>
                <li class="ic-form-style"><a href="/GiangVienClient/LopMonHoc" id="gvGiangDayMenu"><span>Giảng Dạy</span></a>
                </li>
                @*<li class="ic-typography"><a href="@Url.Action("LopMonHoc","GiangVienClient")"><span>Lớp học</span></a></li>*@
                <li class="ic-grid-tables"><a href="@Url.Action("Index", "tailieugiangvien")"><span>Tài liệu</span></a></li>
                <li class="" ><a href="/ThongBao/ThongBaoGiangVien">
                    <div class="zingnotify ntbtn" id="ntbtn">
                                    <span style="color: red; font-size: 13px;" id="thongbao"></span>
                                </div></a></li>
                
            </ul>
        </div>
        <div class="clear">
        </div>
        @RenderBody()
        <div class="clear">
        </div>
    </div>
    <div class="clear">
    </div>
    <div id="site_info">
        <p>
            Khoa Công Nghệ Phần Mềm - Đại học Quốc Gia Thành phố Hồ Chí Minh.
        </p>
    </div>
    <script>
        var myloader = function (actionname) {
            $('#gvclientmaincontent').load(actionname);
        }

        var mainLoader = function (actionname) {
            $('#gv-main-wrapper').load(actionname);
        }
        var mainRedirect = function (actionname) {
            window.location = actionname;
        }

        var thongtinURL = "/GiangVienClient/ThongTin/";
        var capnhatttURL = "/GiangVienClient/CapNhat/";
        var doimatkhauURL = "/GiangVienClient/DoiMatKhau/";
        var damnhanmonsURL = "/GiangVienClient/DamNhanMons/";
        var lopduocphancongURL = "/GiangVienClient/LopMonHoc/";
        var dkgiodayURL = "/GiangVienClient/DangKyGioDay";
        var dkdetaiURL = "/GiangVienClient/DeTai";
        var thongkegiangdayURL = "/GiangVienClient/ThongKeGiangVien";
        var thoikhoabieuURL = "/GiangVienClient/LichHoc";
        var lichthihockyURL = "/GiangVienClient/XemLichThi";

        //menu
        var menuGiangDayURL = "/GiangVienClient/GiangDay/";

        //
        $(document).ready(function () {
            $('#gvGiangDayMenu').click(function () {
                mainRedirect(menuGiangDayURL);
                //$('.gvclientmain').remove();
                //mainLoader(menuGiangDayURL);
            });

            $('#thongtingiangvien').click(function () {
                myloader(thongtinURL);
            });
            $('#capnhatthongtin').click(function () {
                myloader(capnhatttURL);
            });
            $('#doimk').click(function () {
                myloader(doimatkhauURL);
            });
            $('#damnhanmons').click(function () {
                myloader(damnhanmonsURL);
            });
            $('#gvlopduocphancong').click(function () {
                myloader(lopduocphancongURL);
            });
            $('#gvdkgioday').click(function () {
                myloader(dkgiodayURL);
            });
            $('#gvdkdetai').click(function () {
                myloader(dkdetaiURL);
            });
            $('#gvthongkegiangday').click(function () {
                myloader(thongkegiangdayURL);
            });
            $('#gvthoikhoabieu').click(function () {
                myloader(thoikhoabieuURL);
            });
            $('#gvlichthi').click(function () {
                myloader(lichthihockyURL);
            });

            //dang xuat
            $('.dangxuat').click(function () {
                $.post("/GiangVienClient/DangXuat", {}, function (data) {
                    //alert(data.success);
                    window.location = data.success;
                });
            });

            //get so luong thong bao chua xem
            $.post("/ThongBao/GetSoLuongThongBaoGiangVienChuaXem", {}, function (data) {
                if (data.thongbaochuaxem != '0') {
                    $('#thongbao').html(data.thongbaochuaxem);
                }
            });
            $('#ntbtn').click(function () {
                window.location = "/ThongBao/ThongBaoGiangVien";
            });
            $('#hotengiangvien').load("/GiangVienClient/ThongTinGiangVienTopLayout");
        });
    </script>
</body>
</html>
